package net.sxjr.mbg.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 可视化资源注册(权限)
 * </p>
 *
 * @author cuixc
 * @since 2020-12-10
 */
public class JbdpResource extends Model<JbdpResource> {

    private static final long serialVersionUID=1L;

    /**
     * 资源ID
     */
    @TableId("VR_ID")
    private String vrId;

    /**
     * 资源编码
     */
    @TableField("VR_CODE")
    private String vrCode;

    /**
     * 资源类型
     */
    @TableField("VR_TYPE")
    private String vrType;

    /**
     * 资源名称
     */
    @TableField("VR_NAME")
    private String vrName;

    /**
     * 上级资源
     */
    @TableField("PARENT_ID")
    private String parentId;

    /**
     * 上级资源类型
     */
    @TableField("PARENT_TYPE")
    private String parentType;

    /**
     * 状态
     */
    @TableField("STATE")
    private Integer state;

    /**
     * 排序
     */
    @TableField("ORDER_NO")
    private Integer orderNo;


    public String getVrId() {
        return vrId;
    }

    public JbdpResource setVrId(String vrId) {
        this.vrId = vrId;
        return this;
    }

    public String getVrCode() {
        return vrCode;
    }

    public JbdpResource setVrCode(String vrCode) {
        this.vrCode = vrCode;
        return this;
    }

    public String getVrType() {
        return vrType;
    }

    public JbdpResource setVrType(String vrType) {
        this.vrType = vrType;
        return this;
    }

    public String getVrName() {
        return vrName;
    }

    public JbdpResource setVrName(String vrName) {
        this.vrName = vrName;
        return this;
    }

    public String getParentId() {
        return parentId;
    }

    public JbdpResource setParentId(String parentId) {
        this.parentId = parentId;
        return this;
    }

    public String getParentType() {
        return parentType;
    }

    public JbdpResource setParentType(String parentType) {
        this.parentType = parentType;
        return this;
    }

    public Integer getState() {
        return state;
    }

    public JbdpResource setState(Integer state) {
        this.state = state;
        return this;
    }

    public Integer getOrderNo() {
        return orderNo;
    }

    public JbdpResource setOrderNo(Integer orderNo) {
        this.orderNo = orderNo;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.vrId;
    }

    @Override
    public String toString() {
        return "JbdpResource{" +
        "vrId=" + vrId +
        ", vrCode=" + vrCode +
        ", vrType=" + vrType +
        ", vrName=" + vrName +
        ", parentId=" + parentId +
        ", parentType=" + parentType +
        ", state=" + state +
        ", orderNo=" + orderNo +
        "}";
    }
}
